Proxy環境下での conda や pip を使用方法
Condaでの場合
$HOME/.condarc に以下の記述を追加します。
code: bash
proxy_servers:
http: http://ID:PASS@[プロキシサーバ]:[ポート番号]
https: https://ID:PASS@[プロキシサーバ]:[ポート番号]
pip での場合
code: bash
pip install beautifulsoup4 --proxy http://ID:PASS@[PROXYサーバ]:[ポート番号]
Llinux系OSの場合
環境変数 http_proxy を設定することでPROXY経由でアクセスできるようになります。
$HOME/.bash_profile での設定例
code: bash
http_proxy="http://ID:PASS@[PROXYサーバ]:[ポート番号]"
https_proxy="${http_proxy}
HTTP_PROXY=${http_proxy}
HTTPS_PROXY=${http_proxy}
no_proxy="127.0.0.1,localhost"